ARist: An effective API argument recommendation approach

نویسندگان

چکیده

Learning and remembering to use APIs are difficult. Several techniques have been proposed assist developers in using APIs. Most existing focus on recommending the right API methods call, but very few arguments. In this paper, we propose ARist, a novel automated argument recommendation approach which suggests arguments by predicting developers’ expectations when they define methods. To implement idea process, ARist combines program analysis (PA), language models (LMs), several features specialized for task consider functionality of formal parameters positional information code elements (e.g., variables or method calls) given context. LMs used suggest promising candidates identified PA. Meanwhile, PA navigates working set valid satisfy syntax, accessibility, type-compatibility constraints defined programming use. Our evaluation large dataset real-world projects shows that improves state-of-the-art 19% 18% top-1 precision recall frequently-used libraries. For general task, i.e., every outperforms baseline approaches up 125% accuracy. Moreover, newly-encountered projects, achieves more than 60% top-3 accuracy evaluating larger dataset. working/maintaining with personalized LM capture coding practice, can productively rank expected at position 7/10 requests.

برای دانلود باید عضویت طلایی داشته باشید

برای دانلود متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

منابع مشابه

An Information-theoretic Approach for Argument Interpretation

We describe an information-theoretic argument-interpretation mechanism embedded in an interactive system. Our mechanism receives as input an argument entered through a web interface. It generates candidate interpretations in terms of its underlying knowledge representation – a Bayesian network, and applies the Minimum Message Length principle to select the best candidate. The results of our pre...

متن کامل

Establishing an Argument-Based Validity Approach for a Low-Stake Test of Collocational Behavior

Most of the validation studies conducted across varying test application contexts are usually framed within the traditional conceptualization of validity and therefore lack a comprehensive framework to focus on test score interpretations and test score use. This study aimed at developing and validating a collocational behavior test (CBT), drawing on Kane's argument-based approach to validity. F...

متن کامل

Using Change Context with Statistical Learning for API Code Recommendation

Learning and remembering how to use APIs is hard. While codecompletion tools list all the API methods available on a given object, reading through a long list of API method names and their associated documentation is tedious, and users can be easily overloaded with too many suggestions. While several researchers proposed techniques for recommending APIs, their accuracy is low. We present a nove...

متن کامل

Personal Web API Recommendation Using Network-based Inference

In this paper, we evaluate a generic network-based inference algorithm for Web API recommendation. Based on experimental data collected from the Programmable Web repository, we construct two tripartite networks: one where the nodes are Web APIs, users and mashups, and another where the nodes are Web APIs, users and tags. Experimental results show that the network-based inference algorithm yield...

متن کامل

ذخیره در منابع من


  با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید

ژورنال

عنوان ژورنال: Journal of Systems and Software

سال: 2023

ISSN: ['0164-1212', '1873-1228']

DOI: https://doi.org/10.1016/j.jss.2023.111786